﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CouponList.aspx.cs" Inherits="CampanyCMS.WebUI.Admin.Coupon.CouponList" %>

 
<%@ Register Assembly="My97" Namespace="My97" TagPrefix="cc2" %>
<%@ Register TagPrefix="cc1" Namespace="COM.ZTE.TPG.App.UI.WebForm" Assembly="COM.ZTE.TPG.App.UI.WebForm" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>ProductsList</title>
    <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
    <meta content="C#" name="CODE_LANGUAGE">
    <meta content="JavaScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    <link href="../../css/cssCn1.css" type="text/css" rel="stylesheet">
    <link href="../../css/cssCn.css" type="text/css" rel="stylesheet">
</head>
<body ms_positioning="GridLayout">
    <form id="Form1" method="post" runat="server">
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td>
                <div class="div_subtitle">
                    当前位置：产品管理<span class="arrow_subtitle">&gt;</span>产品列表</div>
            </td>
        </tr>
    </table>
    <table id="tb_content" cellspacing="0" cellpadding="0" align="center">
        <tbody>
            <tr>
                <td>
                    <table class="tb_searchbar" cellspacing="1" width="100%">
                        <tbody>
                            <tr>
                                <td class="td_head" colspan="5">
                                    <img class="icon" height="13" src="../../img/search1.gif" width="13">
                                    请填写查询条件
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title" nowrap width="9%">
                                    状态
                                </td>
                                <td class="detail" width="24%">
                                    <span class="td_detail">
                                        <asp:DropDownList ID="drpstatus" runat="server" Width="142px">
                                            <asp:ListItem Value="-1">请选择</asp:ListItem>
                                            <asp:ListItem Value="1">有效</asp:ListItem>
                                            <asp:ListItem Value="0">无效</asp:ListItem>
                                        </asp:DropDownList>
                                    </span>
                                </td>
                                <td class="td_title" nowrap width="12%">
                                    编号</td>
                                <td class="td_detail" width="23%">
                                    <asp:TextBox ID="txtCoupon" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title" nowrap width="15%">
                                    有效期</td>
                                <td class="td_detail" colspan=3>
                                             
                                            <cc2:DateTextBox ID="dateBegindate" runat="server" Width="138px"></cc2:DateTextBox>
                                    至
                                                                                 
                                                 
                                                <cc2:DateTextBox ID="dateEnd" runat="server" Width="138px"></cc2:DateTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" colspan="4">
                                    <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="Button" OnClick="btnSearch_Click">
                                    </asp:Button><font face="宋体">&nbsp;</font>
                                    <asp:Button ID="btnAdd" runat="server" Text="新增" CssClass="Button" OnClick="btnAdd_Click">
                                    </asp:Button><font face="宋体">&nbsp;</font>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <cc1:ZteGrid ID="dgCoupon" runat="server" CssClass="tb_datalist" PageChange="TextBox"
                        Width="100%" AllowPaging="True" PageLanguage="Chinese" IsAllowPaging="True" BorderWidth="0px"
                        CellSpacing="1" AutoGenerateColumns="False" CacheData="ServerCach" SortMode="Total"
                        PageCSS="scrollButton" OnItemCommand="dgCoupon_ItemCommand" OnItemDataBound="dgCoupon_ItemDataBound"
                        BorderStyle="Solid">
                        <AlternatingItemStyle CssClass="tr_even" BackColor="#F7F9FE"></AlternatingItemStyle>
                        <FooterStyle BackColor="#E8E8E8"></FooterStyle>
                        <ItemStyle BorderColor="White" BackColor="White"></ItemStyle>
                        <Columns>
                            <asp:BoundColumn Visible="False" DataField="CouponId" HeaderText="CouponId"></asp:BoundColumn>
                             <asp:BoundColumn Visible="False" DataField="status" HeaderText="status"></asp:BoundColumn>
                            <asp:BoundColumn DataField="CouponNo" HeaderText="编号"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Pcount" HeaderText="数量"></asp:BoundColumn>
                            <asp:BoundColumn DataField="BeginDate" HeaderText="开始时间"></asp:BoundColumn>
                            <asp:BoundColumn DataField="EndDate" HeaderText="结束时间"></asp:BoundColumn>
                            <asp:BoundColumn DataField="UserName" HeaderText="用户名"></asp:BoundColumn>
                        
                            <asp:TemplateColumn>
                                <HeaderTemplate>
                                    是否有效
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnIsFst" runat="server" CommandName="FPage"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                             <asp:TemplateColumn>
                                <HeaderTemplate>
                                    是否有效
                                </HeaderTemplate>
                                <ItemTemplate>
                                   <a href='ViewCoup.aspx?CouponNo=<%# DataBinder.Eval(Container.DataItem, "CouponNo") %>'>使用情况</a>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            
                            
                            
                           
                            <asp:TemplateColumn>
                                <HeaderTemplate>
                                    操作
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="btnModify" runat="server" CommandName="Modify">修改</asp:LinkButton>
                                    <font face="宋体">&nbsp;</font>
                                    <asp:LinkButton ID="btnDelete" runat="server" CommandName="Delete">删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                        <HeaderStyle CssClass="tr_title" BackColor="LightGray"></HeaderStyle>
                        <SelectedItemStyle CssClass="tr_selected" BackColor="#D8D8D8"></SelectedItemStyle>
                        <PagerStyle CssClass="tr_pagenumber"></PagerStyle>
                    </cc1:ZteGrid>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
